<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://unpkg.com/vue@next"></script>

    <title>Document</title>
</head>


<body>
    <script type="text/javascript">

        const app = Vue.createApp({
            // 
        })
        // 注册全局组件
        app.component('SearchInput', SearchInputComponent)
        app.directive('focus', FocusDirective)
        app.use(LocalePlugin)
        // 链式注册
        Vue.createApp({})
            .component('SearchInput', SearchInputComponent)
            .directive('focus', FocusDirective)
            .use(LocalePlugin)

        const RootComponent = {
            /* 选项 */
        }
        const app = Vue.createApp(RootComponent)
        const vm = app.mount('#app')

    </script>

</body>

</html>